package com.jungle.form.control;

import javafx.scene.control.Control;
import javafx.scene.control.RadioButton;
import javafx.scene.control.ToggleButton;
import javafx.scene.control.ToggleGroup;

import java.util.List;

public class FormSingleSelection extends Control {
    // boolean/Integer/String/Option<String,boolean>
    private final ToggleGroup group = new ToggleGroup();
    private List<RadioButton> radioButtons;
    private List<ToggleButton> toggleButtons;

    public FormSingleSelection(List<RadioButton> radioButtons) {
        this.radioButtons = radioButtons;

        for (RadioButton radioButton : radioButtons) {
            radioButton.setToggleGroup(group);
        }
    }
}
